import { axios as request  } from '@/utils/request'

export function getCompanyList(query) {
  return request({
    url: 'api/company/order/suggest',
    method: 'get',
    params: query
  })
}

export function getCompanyListAll(query) {
  return request({
    url: 'api/company/order/suggestAll',
    method: 'get',
    params: query
  })
}

export function getBargainList(query) {
  return request({
    url: 'settlementBargain/list',
    method: 'get',
    params: query
  })
}

export function getCompanyLineList(companyId) {
  return request({
    url: `api/company/${companyId}/line`,
    method: 'get'
  })
}

export function getLinePrice(params) {
  return request({
    url: 'api/price-library/minimum',
    method: 'get',
    params
  })
}